package com.example.music_mediaplayer.tool;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by quan on 2017/11/26.
 * Toast工具类
 */

public class ToastTools {
    public static void toastMsg(Context context, String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }

    /**
     * 自定义显示Toast时间
     */
    public static void toastMsg(Context context, String message, int duration) {
        Toast.makeText(context, message, duration).show();
    }
}
